﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fis.Win.Forms
{
    public partial class BookAidsViewForm : EditForm
    {
        public BookAidsViewForm()
        {
            InitializeComponent();
        }

        public override void InitializeBinding()
        {
            var d = ViewModel["data"] as DataTable;
            gridControl1.DataSource = d;
        }

        public override void InitializeViewUI()
        {
            iSaveNew.Visibility = DevExpress.XtraBars.BarItemVisibility.Never;
            iSave.Caption = "关闭";
        }

        protected override bool SaveProcess()
        {
            Close();
            return true;
        }
    }
}
